任务状态查询

基本信息

  • 接口说明:任务状态查询
  • 请求地址:http(s)://sparkbot.xf-yun.com/v1/retrieval/task_query
  • 请求格式:application/json

  • 请求方式:POST

请求参数说明

参数 类型 必选 说明 其他信息
task_id string 任务ID
app_id string 应用ID 平台申请的应用
bot_id string 机器人ID

响应参数说明

参数 类型 说明
code int 0- 成功
result object
├─ task_id string 异步任务ID,根据这个查询文件是否操作完成
├─ status string 任务执行状态 running:进行中 completed:完成 failed:失败
├─ message string 错误信息描述信息
message string 提示信息

示例

  • 请求示例
{
    "task_id":"task_id",
    "app_id":"app_id",
    "bot_id": "bot_id"
}
  • 响应示例
{
    "code": 0,
    "message": "Success",
    "result": {
        "task_id": "c66cbd3fbba84f97ab57cf56544aa107",
        "status": "completed",
        "message": ""
    },
  "sid": "cht000cb087@dx18793cd421fb894542"
}
powered by 飞云 all right reserved,powered by Gitbook该文章修订时间: 2025-06-11 03:49:00

results matching ""

    No results matching ""